<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Document</title>
</head>
<body>
  <h1>首页</h1>
  <form action="/data" method="get">
    用户名：<input type="text" name="name"><br>
    密  码：<input type="password" name="pwd"><br>
   <input type="submit" value="提交">
  </form>

  <form action="/postData" method="post">
    用户名: <input type="text" name="name"><br>
    密  码: <input type="text" name="pwd"><br>
    <input type="submit" value="提交">
  </form>
  <img src="../public/img/1.jpg" alt="">
</body>
</html>